import request from '@/utils/request'

// 费用科目
export const storeFinanceCoaAdd = data => {
  return request({
    url: '/business-server/storeFinanceCoa/addFinanceCoa',
    method: 'post',
    data
  })
}

export const storeFinanceCoaDel = data => {
  return request({
    url: '/business-server/storeFinanceCoa/del',
    method: 'post',
    data
  })
}

export const storeFinanceCoaList = data => {
  return request({
    url: '/business-server/storeFinanceCoa/page',
    method: 'post',
    data
  })
}

export const storeFinanceCoaUpdate = data => {
  return request({
    url: '/business-server/storeFinanceCoa/updateFinanceCoa',
    method: 'post',
    data
  })
}

export const storeFinanceCoaQueryById = data => {
  return request({
    url: '/business-server/storeFinanceCoa/queryById',
    method: 'get',
    params: data
  })
}

// 费用支出
export const addFinanceRecord = data => {
  return request({
    url: '/business-server/storeFinanceRecordTemplate/addFinanceRecord',
    method: 'post',
    data
  })
}

export const storeFinanceRecordDel = data => {
  return request({
    url: '/business-server/storeFinanceRecordTemplate/del',
    method: 'post',
    data
  })
}

export const storeFinanceRecordList = data => {
  return request({
    url: '/business-server/storeFinanceRecordTemplate/page',
    method: 'post',
    data
  })
}

export const updateFinanceRecord = data => {
  return request({
    url: '/business-server/storeFinanceRecordTemplate/updateFinanceRecord',
    method: 'post',
    data
  })
}

//技师调度
export const technicianDispatchList = data => {
  return request({
    url: '/business-server/technicianDispatchApply/page',
    method: 'post',
    data
  })
}

export const technicianDispatchApply = data => {
  return request({
    url: '/business-server/technicianDispatchApply/apply',
    method: 'post',
    data
  })
}

export const technicianDispatchUpdate = data => {
  return request({
    url: '/business-server/technicianDispatchApply/update',
    method: 'post',
    data
  })
}

export const technicianDispatchUpdateStatus = data => {
  return request({
    url: '/business-server/technicianDispatchApply/updateStatus',
    method: 'post',
    data
  })
}

export const technicianDispatchDel = data => {
  return request({
    url: '/business-server/technicianDispatchApply/del',
    method: 'post',
    data
  })
}

//车辆养护
export const storeConserveMasterList = data => {
  return request({
    url: '/business-server/storeConserveMaster/page',
    method: 'post',
    data
  })
}

export const addConserveMaster = data => {
  return request({
    url: '/business-server/storeConserveMaster/addConserveMaster',
    method: 'post',
    data
  })
}

export const updateConserveMaster = data => {
  return request({
    url: '/business-server/storeConserveMaster/updateConserveMaster',
    method: 'post',
    data
  })
}

export const storeConserveMasterQueryById = data => {
  return request({
    url: '/business-server/storeConserveMaster/queryById',
    method: 'get',
    params: data
  })
}

export const getDocNo = data => {
  return request({
    url: '/business-server/storeConserveMaster/getDocNo',
    method: 'get',
    params: data
  })
}

export const getCars = data => {
  return request({
    url: '/car/shgUserCar/getCars',
    method: 'post',
    data
  })
}

export const storeConserveMasterCancel = data => {
  return request({
    url: '/business-server/storeConserveMaster/cancel',
    method: 'post',
    data
  })
}

export const storeConserveMasterDel = data => {
  return request({
    url: '/business-server/storeConserveMaster/del',
    method: 'post',
    data
  })
}

export const storeConserveMasterComplete = data => {
  return request({
    url: '/business-server/storeConserveMaster/completeMaster',
    method: 'post',
    data
  })
}

export const shgSupplierCityList = data => {
  return request({
    url: '/car/shgSupplierCity/pageForStore',
    method: 'post',
    data
  })
}

export const carBrandTree = data => {
  return request({
    url: '/car/carBrand/tree',
    method: 'post',
    data
  })
}

export const expenseAccountSummary = data => {
  return request({
    url: '/business-server/storeReportForm/expenseAccountSummary',
    method: 'post',
    data
  })
}

export const financeSummary = data => {
  return request({
    url: '/business-server/storeReportForm/financeSummary',
    method: 'post',
    data
  })
}

export const storeOrderList = data => {
  return request({
    url: '/business-server/storeOrder/page',
    method: 'post',
    data
  })
}

export const storeOrderConfirm = data => {
  return request({
    url: '/business-server/storeOrder/confirm',
    method: 'post',
    data
  })
}

export const storeOrderReturnList = data => {
  return request({
    url: '/business-server/omsOrderReturnApply/page',
    method: 'post',
    data
  })
}

export const storeOrderReturnConfirm = data => {
  return request({
    url: '/business-server/omsOrderReturnApply/confirm',
    method: 'post',
    data
  })
}

export const storeOrderReturnDetail = data => {
  return request({
    url: '/business-server/omsOrderReturnApply/detail',
    method: 'post',
    data
  })
}

export const financeConserveSummary = data => {
  return request({
    url: '/business-server/storeReportForm/financeConserveSummary',
    method: 'post',
    data
  })
}

export const financeItemSummary = data => {
  return request({
    url: '/business-server/storeReportForm/financeItemSummary',
    method: 'post',
    data
  })
}

export const financeItemDetail = data => {
  return request({
    url: '/business-server/storeReportForm/financeItemDetail',
    method: 'post',
    data
  })
}

export const storeAllOrderList = data => {
  return request({
    url: '/business-server/storeOrder/userPage',
    method: 'post',
    data
  })
}

export const getOrderPage = data => {
  return request({
    url: '/business-server/storeOrder/getOrderPage',
    method: 'post',
    data
  })
}

export const confirmOrder = data => {
  return request({
    url: '/business-server/storeOrder/confirmOrder',
    method: 'post',
    data
  })
}

export const storeMasterThemeAuditList = data => {
  return request({
    url: '/business-server/storeMasterThemeAudit/page',
    method: 'post',
    data
  })
}

export const storeMasterThemeAuditConfirm = data => {
  return request({
    url: '/business-server/storeMasterThemeAudit/confirm',
    method: 'post',
    data
  })
}

export const storeMasterThemeAuditReject = data => {
  return request({
    url: '/business-server/storeMasterThemeAudit/reject',
    method: 'post',
    data
  })
}

export const storeMasterThemeAuditQueryDetailList = data => {
  return request({
    url: '/business-server/storeMasterThemeAudit/queryDetailList',
    method: 'post',
    data
  })
}

export const storeProcureOrderList = data => {
  return request({
    url: '/business-server/storeProcureOrder/page',
    method: 'post',
    data
  })
}